package com.example.todolist.controller;

import com.example.todolist.dto.sys.SubscribeDTO;
import com.example.todolist.service.impl.UserSubscribeServiceImpl;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


@CrossOrigin
@RestController
@RequestMapping("/subscribe")
@Api(tags = "订阅模块", value = "订阅controller")
public class SubscribeController {

    @Autowired
    private  UserSubscribeServiceImpl userSubscribeService;
    @ApiOperation("协助小程序订阅设置")
    @GetMapping("/subscribeToUser")
    public String subscribeToUser() {
        String jsonData = userSubscribeService.Auth("oxSIu5Pg9XG3hl_0QLfw7U27HBiU","2022-02-12","哈哈哈哈");
        System.out.println(jsonData);
        return null;
    }
}
